package com.qg.rta.support;

import com.lzs.adx.commmon.utils.SpringContextUtils;
import com.qg.rta.support.mpping.AbstractReportParamsMapping;
import com.qg.rta.support.mpping.CommonReportStrategy;
import com.qg.rta.support.mpping.HwReportMappingStrategy;

public class ReportMappingFactory {


    public static AbstractReportParamsMapping handler(String mediaChannel) {
        if(mediaChannel.equals("hw")){
            return SpringContextUtils.getBean(HwReportMappingStrategy.class);
        }

        return SpringContextUtils.getBean(CommonReportStrategy.class);
    }
}
